_agent = _this select 0;
_targetsArray = _this select 1;
_heliunit = _this select 2;

_dummyAction = _agent addAction["foo", "transportation\callTaxi.sqf"];
while {_dummyAction >= 0} do {
	_agent removeAction _dummyAction;
	_dummyAction = _dummyAction - 1;
};
_act = _agent addAction ["-- Air Taxi Destination --","a"];
//hint "addaction";
//sleep 2;
for "_i" from 0 to count _targetsArray -1  do {
	_item = _targetsArray select _i;
	_act = _agent addAction ["Goto " + (_item select 1), "transportation\callTaxi.sqf",[_heliunit,_targetsArray select _i]];
	//hint format["N.Action %1",_i];
	//sleep 2;
	
};
_act = _agent addAction ["--------------------------","a"];

